package com.tang.model.state.examination;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/5 13:11
 * @Desc
 * @Remarks
 */

public class Test {
    public static void main(String[] args) {
        Thread.currentThread().setName("主线程");
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ExamineOrderConfig.class);
        IExamineService examineService = context.getBean(IExamineService.class);
        ExamineOrder examineOrder = examineService.reserve();
        System.out.println(examineOrder.getStatus());
        examineService.takeNumber(examineOrder.getId());
        System.out.println(examineOrder.getStatus());

        examineService.entryInformation(examineOrder.getId());
        System.out.println(examineOrder.getStatus());

        examineService.payment(examineOrder.getId());
        System.out.println(examineOrder.getStatus());

        examineService.examine(examineOrder.getId());
        System.out.println(examineOrder.getStatus());

        examineService.published(examineOrder.getId());
        System.out.println(examineOrder.getStatus());


    }
}
